﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using DelonixRegiaHMSys.Core.Interfaces;
using DelonixRegiaHMSys.Core.Models;

namespace DelonixRegiaHMSys.Core.Services
{
    public class roServices
    {
        private readonly IRoomQuery _roomQuery;
        public roServices(IRoomQuery roomQuery)
        {
            _roomQuery = roomQuery;
        }

        public IEnumerable<RoomDetails> GetAll()
        {
            return _roomQuery.GetAllRoomNum();
        }

        public RoomDetails GetRoomByNum(int roomNum)
        {
            return _roomQuery.GetRoomByNum(roomNum);
        }

        public IEnumerable<RoomDetails> GetRoomByGuestRequirements(string roomType, string bedType, string smokingOrNot)
        {
            return _roomQuery.GetRoomByGuestRequirements(roomType, bedType, smokingOrNot);
        }

        public void UpdateRoom(int roomNum, string roomStatus, string guestID)
        {
            _roomQuery.UpdateRoom(roomNum, roomStatus, guestID);
        }

        public IEnumerable<RoomDetails> GetAllRoom(string status)
        {
            return _roomQuery.GetAllRoom(status);
        }
    }
}
